FROM openjdk:8u212-jre
MAINTAINER chizon chizon@126.com
WORKDIR /usr/local/app
COPY deploy/Shanghai /etc/timezone
COPY deploy/Shanghai /etc/localtime
COPY *.jar /usr/local/app
COPY deploy/cert/* /usr/local/app/

ENTRYPOINT java -jar  -server -Xms512M -Xmx2048M -Xss512k -XX:MetaspaceSize=64M -XX:MaxMetaspaceSize=1024M -XX:+UseG1GC  *.jar
#ENTRYPOINT java -Dcom.sun.management.jmxremote.port=1199 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -jar *.jar
#EXPOSE 1199